﻿using System;
using Model.Interfaces;

namespace Model.ModelClasses
{
    public abstract class AbstractModel : IModel
    {
        public event EventHandler UpdateModelEvent;
        public void UpdateModel()
        { if (UpdateModelEvent != null) UpdateModelEvent(this, new EventArgs()); }

        public void UpdateModel(object sender, EventArgs eventArgs)
        { if (UpdateModelEvent != null) UpdateModelEvent(sender, eventArgs); }
    }
}